It is not hard to do crypto right but...
We will look at the basic blocks of modern crypto using Python. There are a number of crypto libraries in Python:
We will use the cryptography library. You can download the library from here and follow the instructions. You should be able to install the library using the following command. You need to have pip installed.
pip install cryptography
To install pip, follow the instructions here
Cryptography components are divided into different submodules. Following is a list of these submodules (not exhaustive)